package com.ict.service;

import com.ict.dao.*;
import com.ict.model.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by weiaquarius on 16/4/20.
 */
@Service
public class CacheService {
    @Autowired
    public GridsAnomalyCacheDao gridsAnomalyCacheDao;
    @Autowired
    public InboundOutboundCacheDao inboundOutboundCacheDao;
    @Autowired
    public ShipsAnomalyCacheDao shipsAnomalyCacheDao;
    @Autowired
    public AISDeviceOfflineCacheDao aisDeviceOfflineCacheDao;
    @Autowired
    public ShipRendezvousCacheDao shipRendezvousCacheDao;

    public List<GridsAnomalyCache> getGridsAnomlyCache(Double insertTime, Long num) {
        return gridsAnomalyCacheDao.getGridsAnomalyCache(insertTime,num);
    }
    public List<InboundOutboundCache> getInboundOutboundCache(Double insertTime, Long num) {
        return  inboundOutboundCacheDao.getInboundOutboundCache(insertTime,num);
    }
    public List<ShipsAnomalyCache> getShipsAnomlyCache(Double insertTime, Long num){
        return shipsAnomalyCacheDao.getShipsAnomalyCache(insertTime,num);
    }
    public List<AISDeviceOfflineCache> getAISDeviceOfflineCache(Double insertTime, Long num){
        return aisDeviceOfflineCacheDao.getAISDeviceOfflineCache(insertTime, num);
    }

    public List<ShipRendezvousCache> getShipRendezvousCache(Double insertTime, Long num){
        return shipRendezvousCacheDao.getShipRendezvousCache(insertTime, num);
    }
}
